.class public Lcom/instagram/ui/d/f;
.super Ljava/lang/Object;
.source "SimpleMenuItemRowViewBinder.java"


# direct methods
.method public static a(Landroid/content/Context;)Landroid/view/View;
    .locals 3
    .parameter

    .prologue
    .line 48
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->row_simple_text:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 49
    new-instance v2, Lcom/instagram/ui/d/g;

    invoke-direct {v2}, Lcom/instagram/ui/d/g;-><init>()V

    .line 50
    sget v0, Lcom/facebook/aw;->row_simple_text_textview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/ui/d/g;->a:Landroid/widget/TextView;

    .line 51
    sget v0, Lcom/facebook/aw;->row_simple_text_disclosure:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/ui/d/g;->b:Landroid/view/View;

    .line 52
    sget v0, Lcom/facebook/aw;->row_simple_text_checkbox:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, v2, Lcom/instagram/ui/d/g;->c:Landroid/widget/CheckBox;

    .line 53
    sget v0, Lcom/facebook/aw;->row_simple_text_chosen_option:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/ui/d/g;->d:Landroid/widget/TextView;

    .line 54
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 55
    return-object v1
.end method

.method public static a(Landroid/content/Context;Z)Landroid/view/View;
    .locals 4
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 72
    invoke-static {p0}, Lcom/instagram/ui/d/f;->a(Landroid/content/Context;)Landroid/view/View;

    move-result-object v3

    .line 73
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/au;->form_padding:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 74
    if-eqz p1, :cond_0

    move v0, v1

    :goto_0
    invoke-virtual {v3, v1, v0, v1, v2}, Landroid/view/View;->setPadding(IIII)V

    .line 75
    sget v0, Lcom/facebook/av;->input_top:I

    invoke-static {v3, v0}, Lcom/instagram/ui/d/f;->a(Landroid/view/View;I)V

    .line 76
    return-object v3

    :cond_0
    move v0, v2

    .line 74
    goto :goto_0
.end method

.method public static a(Landroid/content/Context;ZZ)Landroid/view/View;
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v0, 0x0

    .line 59
    invoke-static {p0}, Lcom/instagram/ui/d/f;->a(Landroid/content/Context;)Landroid/view/View;

    move-result-object v3

    .line 60
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    sget v2, Lcom/facebook/au;->form_padding:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 61
    if-eqz p1, :cond_1

    move v2, v1

    :goto_0
    if-eqz p2, :cond_0

    move v0, v1

    :cond_0
    invoke-virtual {v3, v1, v2, v1, v0}, Landroid/view/View;->setPadding(IIII)V

    .line 67
    sget v0, Lcom/facebook/av;->input_single:I

    invoke-static {v3, v0}, Lcom/instagram/ui/d/f;->a(Landroid/view/View;I)V

    .line 68
    return-object v3

    :cond_1
    move v2, v0

    .line 61
    goto :goto_0
.end method

.method private static a(Landroid/view/View;I)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 88
    sget v0, Lcom/facebook/aw;->row_simple_text_container:I

    invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 91
    return-void
.end method

.method public static a(Landroid/view/View;Lcom/instagram/ui/d/g;Lcom/instagram/ui/d/b;Z)V
    .locals 4
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 18
    invoke-virtual {p2}, Lcom/instagram/ui/d/b;->e()Ljava/lang/CharSequence;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 19
    iget-object v0, p1, Lcom/instagram/ui/d/g;->a:Landroid/widget/TextView;

    invoke-virtual {p2}, Lcom/instagram/ui/d/b;->e()Ljava/lang/CharSequence;

    move-result-object v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 23
    :goto_0
    iget-object v3, p1, Lcom/instagram/ui/d/g;->b:Landroid/view/View;

    invoke-virtual {p2}, Lcom/instagram/ui/d/b;->a()Z

    move-result v0

    if-eqz v0, :cond_4

    move v0, v1

    :goto_1
    invoke-virtual {v3, v0}, Landroid/view/View;->setVisibility(I)V

    .line 24
    iget-object v0, p1, Lcom/instagram/ui/d/g;->c:Landroid/widget/CheckBox;

    invoke-virtual {p2}, Lcom/instagram/ui/d/b;->b()Z

    move-result v3

    if-eqz v3, :cond_0

    move v2, v1

    :cond_0
    invoke-virtual {v0, v2}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 25
    invoke-virtual {p2}, Lcom/instagram/ui/d/b;->f()Ljava/lang/CharSequence;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 26
    iget-object v0, p1, Lcom/instagram/ui/d/g;->d:Landroid/widget/TextView;

    invoke-virtual {p2}, Lcom/instagram/ui/d/b;->f()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 27
    iget-object v0, p1, Lcom/instagram/ui/d/g;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 32
    :goto_2
    iget-object v0, p1, Lcom/instagram/ui/d/g;->c:Landroid/widget/CheckBox;

    invoke-virtual {v0}, Landroid/widget/CheckBox;->getVisibility()I

    move-result v0

    if-nez v0, :cond_1

    .line 33
    invoke-virtual {p2}, Lcom/instagram/ui/d/b;->c()Z

    move-result v0

    if-eqz v0, :cond_6

    .line 34
    iget-object v0, p1, Lcom/instagram/ui/d/g;->c:Landroid/widget/CheckBox;

    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 41
    :cond_1
    :goto_3
    if-eqz p3, :cond_2

    .line 42
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 43
    invoke-virtual {p0, v1, v1, v1, v1}, Landroid/view/View;->setPadding(IIII)V

    .line 45
    :cond_2
    return-void

    .line 21
    :cond_3
    iget-object v0, p1, Lcom/instagram/ui/d/g;->a:Landroid/widget/TextView;

    invoke-virtual {p2}, Lcom/instagram/ui/d/b;->d()I

    move-result v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setText(I)V

    goto :goto_0

    :cond_4
    move v0, v2

    .line 23
    goto :goto_1

    .line 29
    :cond_5
    iget-object v0, p1, Lcom/instagram/ui/d/g;->d:Landroid/widget/TextView;

    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_2

    .line 36
    :cond_6
    iget-object v0, p1, Lcom/instagram/ui/d/g;->c:Landroid/widget/CheckBox;

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    goto :goto_3
.end method

.method public static b(Landroid/content/Context;Z)Landroid/view/View;
    .locals 4
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 80
    invoke-static {p0}, Lcom/instagram/ui/d/f;->a(Landroid/content/Context;)Landroid/view/View;

    move-result-object v3

    .line 81
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/au;->form_padding:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    .line 82
    if-eqz p1, :cond_0

    move v0, v1

    :goto_0
    invoke-virtual {v3, v1, v2, v1, v0}, Landroid/view/View;->setPadding(IIII)V

    .line 83
    sget v0, Lcom/facebook/av;->input_bottom:I

    invoke-static {v3, v0}, Lcom/instagram/ui/d/f;->a(Landroid/view/View;I)V

    .line 84
    return-object v3

    :cond_0
    move v0, v2

    .line 82
    goto :goto_0
.end method
